<!doctype html>
<title>Change CSS</title>

<p class="example">Hello World!</p>

<script>

var example = document.querySelector(".example");
example.style.color = "red";
example.style.fontSize = "50px";
example.style.textDecoration = "underline";

</script>